package com.example.ole.aspectjbase;

import android.Manifest;
import android.content.Context;
import android.os.SystemClock;
import android.util.Log;

import com.example.ole.aspectjbase.annotation.DemoAnnotation;
import com.example.ole.aspectjbase.annotation.PermissionDenied;
import com.example.ole.aspectjbase.annotation.PermissionRequired;

public class A {
    public void B(String data) {
        Log.w("A", "A::B() " + data);
        SystemClock.sleep(123);
    }

    @DemoAnnotation
    public void C(String arg) {
        Log.w("Aspect", "A::C() " + arg);
    }

    @PermissionRequired(required = {Manifest.permission.CAMERA}, requestCode = 0)
    public void cameraPermission(Context ctx) {
        Log.w("A", "cameraPermission granted.");
    }
}
